from flask import Flask
from models import *

app  = Flask(__name__)

@app.route('/')
def index():
   
    return 'index,你好'


# 在视图函数中进行模型操作
@app.route('/mod')
def mod():
    data = User.query.all()
    print(data) 

    return '模型'  

if __name__ == '__main__':
    app.run(host='0.0.0.0',debug=True)